package cn.tac.test.seo.rpc.client.feign;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author tac
 * @since 20/12/2017
 */
@ConfigurationProperties("client")
public class ClientProperties {
    private Provider provider = new Provider();

    public Provider getProvider() {
        return provider;
    }

    public void setProvider(Provider provider) {
        this.provider = provider;
    }

    public static class Provider {
        private String protocol = "http";
        private String host = "localhost";
        private Integer port = 8080;

        public String getProtocol() {
            return protocol;
        }

        public void setProtocol(String protocol) {
            this.protocol = protocol;
        }

        public String getHost() {
            return host;
        }

        public void setHost(String host) {
            this.host = host;
        }

        public Integer getPort() {
            return port;
        }

        public void setPort(Integer port) {
            this.port = port;
        }
    }
}
